import request from '@/utils/request'

// 1.本年累计生产
export function totalProduction(year) {
  return request({
    url: '/synthesizeMobile/totalProduction',
    method: 'get',
    params: {
		year
	}
  })
}

// 2.本年累计销售
export function totalSales(year) {
  return request({
    url: '/synthesizeMobile/totalSales',
    method: 'get',
    params: {
		year
	}
  })
}
// 3.本年累计用电
export function totalPower(year) {
  return request({
    url: '/synthesizeMobile/totalPower',
    method: 'get',
    params: {
		year
	}
  })
}
// 4.本年隐患整改数
export function hiddenDanger(year) {
  return request({
    url: '/synthesizeMobile/hiddenDanger',
    method: 'get',
    params: {
		year
	}
  })
}

// 5.获取每月生产数据柱状图
export function productionline(year) {
  return request({
    url: '/synthesizeMobile/production/line',
    method: 'get',
    params: {
		year
	}
  })
}

//6.获取每月销售数据柱状图
export function salesline(year) {
  return request({
    url: '/synthesizeMobile/sales/line',
    method: 'get',
    params: {
		year
	}
  })
}

// 7.每个车间用电饼状图
export function electricpie(year) {
  return request({
    url: '/synthesizeMobile/electric/pie',
    method: 'get',
    params: {
		year
	}
  })
}

// 8.安全环保月度巡检折线图
export function inspectionline(year) {
  return request({
    url: '/synthesizeMobile/inspection/line',
    method: 'get',
    params: {
		year
	}
  })
}
// 9.月度隐患柱状图
export function hazardline(year) {
  return request({
    url: '/synthesizeMobile/hazard/line',
    method: 'get',
    params: {
		year
	}
  })
}
// 10.隐患类型数据柱状图
export function hazardTpeline(year) {
  return request({
    url: '/synthesizeMobile/hazardTpe/line',
    method: 'get',
    params: {
		year
	}
  })
}


